﻿@model Gtkj.CMS.Model.Order
@{
    ViewBag.Title = "订单详情 ";
    Layout = "~/Views/Shared/Master.cshtml";
}
<!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
    <!-- BEGIN CONTENT BODY -->
    <div class="page-content">
        <!-- BEGIN PAGE HEADER-->
        <div class="page-bar">
            <ul class="page-breadcrumb">
                <li>
                    <a href="/Home/Main">首页</a>
                    <i class="fa fa-angle-double-right"></i>
                </li>
                <li>
                    <a href="/Home/GetOrder?type=0">订单列表</a>
                    <i class="fa fa-angle-double-right"></i>
                </li>
                <li>
                    <span>查看详情</span>
                </li>
            </ul>
        </div>
        <!-- BEGIN PAGE TITLE-->
        <h3 class="page-title">
            查看详情
            <small></small>
        </h3>
        <!--biaoge-->
        <div class="portlet light ">
            <div class="portlet-title tabbable-line">
                <div class="caption"><i class="icon-settings font-yellow-casablanca"></i><span class="caption-subject bold font-yellow-casablanca">基础信息</span></div>
                <a onclick="history.go(-1)" class="btn btn-success pagin_ri" href="javascript:;"><span class="icon-action-undo" aria-hidden="true" style="float:left; margin-top:3px; margin-right:4px"></span> 返回</a>
            </div>
            <!-- END PAGE TITLE-->
            <div class="search_1" style="padding-bottom:5px">
                <!-- END PAGE TITLE-->
                <div class="form-horizontal">
                    <div class="media-body" style="overflow:visible">
                        <div class="row">
                            <div class="col-md-6 col-sm-6">
                                <div class="form-group m_bot10">
                                    <label class="control-label col-md-4 col-sm-4">姓名：</label>
                                    <div class="col-md-8 col-sm-8">
                                        <p class="form-control-static"> <a href="javascript:;" id="username" data-type="text" data-pk="1" data-original-title="输入修改信息">@Model.CustomerName</a></p>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6 col-sm-6">
                                <div class="form-group m_bot10">
                                    <label class="control-label col-md-4 col-sm-4">手机号码：</label>
                                    <div class="col-md-8 col-sm-8">
                                        <p class="form-control-static"><a href="javascript:;" id="iphone" data-type="text" data-pk="1" data-original-title="输入修改信息"> @Model.Phone</a></p>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-6 col-sm-6">
                                <div class="form-group m_bot10">
                                    <label class="control-label col-md-4 col-sm-4">性别：</label>
                                    <div class="col-md-8 col-sm-8">
                                        <p class="form-control-static"> @(Model.Sex == true ? "男" : "女") </p>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6 col-sm-6">
                                <div class="form-group m_bot10">
                                    <label class="control-label col-md-4 col-sm-4">年龄：</label>
                                    <div class="col-md-8 col-sm-8">
                                        <p class="form-control-static"> @Model.Age </p>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-6 col-sm-6">
                                <div class="form-group m_bot10">
                                    <label class="control-label col-md-4 col-sm-4">服务人员：</label>
                                    <div class="col-md-8 col-sm-8">
                                        <p class="form-control-static"> @Model.ByName</p>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6 col-sm-6">
                                <div class="form-group m_bot10">
                                    <label class="control-label col-md-4 col-sm-4">客户地址：</label>
                                    <div class="col-md-8 col-sm-8">
                                        <p class="form-control-static"><a href="javascript:;" id="zhi" data-type="text" data-pk="1" data-original-title="输入修改信息">@Model.Address</a></p>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-6 col-sm-6">
                                <div class="form-group m_bot10">
                                    <label class="control-label col-md-4 col-sm-4">产品名称：</label>
                                    <div class="col-md-8 col-sm-8">
                                        <p class="form-control-static"> @Model.GoodName</p>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6 col-sm-6">
                                <div class="form-group m_bot10">
                                    <label class="control-label col-md-4 col-sm-4">订购微信：</label>
                                    <div class="col-md-8 col-sm-8">
                                        <p class="form-control-static">@Model.ByWeChat</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-6 col-sm-6">
                                <div class="form-group m_bot10">
                                    <label class="control-label col-md-4 col-sm-4">支付方式：</label>
                                    <div class="col-md-8 col-sm-8">
                                        <p class="form-control-static"> @Model.PayWay</p>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6 col-sm-6">
                                <div class="form-group m_bot10">
                                    <label class="control-label col-md-4 col-sm-4">下次回访时间：</label>
                                    <div class="col-md-8 col-sm-8">
                                        <p class="form-control-static">@Model.VisitTime.ToString("yyyy-MM-dd")</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-6 col-sm-6">
                                <div class="form-group m_bot10">
                                    <label class="control-label col-md-4 col-sm-4">详情：</label>
                                    <div class="col-md-8 col-sm-8">
                                        <p class="form-control-static"> @Model.Details</p>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6 col-sm-6">
                                <div class="form-group m_bot10">
                                    <label class="control-label col-md-4 col-sm-4">价格：</label>
                                    <div class="col-md-8 col-sm-8">
                                        <p class="form-control-static">@Model.Price</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- END PAGE TITLE-->
            <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                <legend>图片</legend>
            </fieldset>
            <div class="tabbable tabbable-tabdrop form_mag" style="padding:50px;">

                @if (Model.Image1 != null)
                {
                    <img src="@Model.Image1" style="width:316px;height:180px;" />
                }
                @if (Model.Image2 != null)
                {
                    <img src="@Model.Image2" style="width:316px;height:180px;" />
                }
                @if (Model.Image3 != null)
                {
                    <img src="@Model.Image3" style="width:316px;height:180px;" />
                }
            </div>
            <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                <legend>回访记录</legend>
            </fieldset>
            @if (Model.Visit.Count>0)
            {
                var list = Model.Visit.ToList();
                for (int i = 0; i < list.Count; i++)
                {
                    <p style="font-size:18px;font-weight:bold;">@(i+1).&nbsp;&nbsp;&nbsp;&nbsp;@list[i].CreateTime.ToString("yyyy-MM-dd")</p>
                    <div class="tabbable tabbable-tabdrop form_mag" style="padding:50px;">
                        <p style="font-size:14px;">@list[i].Details</p>

                        @if (list[i].Image1 != null)
                        {
                            <img src="@list[i].Image1" style="width:316px;height:180px;" />
                        }
                        @if (list[i].Image2 != null)
                        {
                            <img src="@list[i].Image2" style="width:316px;height:180px;" />
                        }
                        @if (list[i].Image3 != null)
                        {
                            <img src="@list[i].Image3" style="width:316px;height:180px;" />
                        }
                    </div>
                    <hr />
                }
            }
            else{
                <span>暂无回访记录</span>
            }

        </div>
    </div>
    <!-- END CONTENT BODY -->
    <!-- BEGIN FORM-->
</div>
<!-- END CONTENT -->